package com.design.pattern.designPrinciples.liskovSubstitution.simple;/** * create by yufeng on 2021/7/3 16:05 */public class Square extends Rectangle {    private long length;    public long getLength() {        return length;    }    public void setLength(long length) {        this.length = length;    }    @Override    public long getHeight() {        return getLength();    }    @Override    public void setHeight(long height) {        setLength(height);    }    @Override    public long getWidth() {        return getLength();    }    @Override    public void setWidth(long width) {        setLength(width);    }}